onEvent('recipes', (event) => {
    const meat_list = [
        {
            input: 'minecraft:pufferfish',
            count: 128000
        },
        {
            input: 'minecraft:pufferfish',
            count: 90000
        },
        {
            input: 'minecraft:salmon',
            count: 86660
        },
        {
            input: 'minecraft:chicken',
            count: 80000
        },
        {
            input: 'minecraft:cod',
            count: 74440
        },
        {
            input: 'minecraft:beef',
            count: 100000
        },
        {
            input: 'minecraft:mutton',
            count: 70000
        },
        {
            input: 'kubejs:softclay_cake',
            count: 10000
        },
        {
            input: 'minecraft:rotten_flesh',
            count: 20000
        }
    ]

    meat_list.forEach(i => {
        event.recipes.custommachinery.custom_machine("custommachinery:bloodsyn", 20)
            .requireItem(i.input)
            .produceFluid(Fluid.of('evilcraft:blood', i.count))
    })



});

onEvent("lootjs", (event) => {
    // 启用战利品表输出
    event.enableLogging();

    event
        .addEntityLootModifier(LootType.FISHING)
        .thenRemove('#minecraft:saplings')
        .thenAdd('betternether:cincinnasite')
        .thenAdd('botania:life_essence')
        .thenAdd(Item.of('bloodmagic:soulgemgreater', '{souls:4096.0d}'))

    event
        .addEntityLootModifier(LootType.GIFT)
        .thenRemove('#minecraft:saplings')
});